[id].vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. <template>
  2. <div id="newsList">
  3. <!-- 页面头部 -->
  4. <HomePageHead></HomePageHead>
  5. <!-- 导航栏 -->
  6. <HomePageNavigation1></HomePageNavigation1>
  7. <!-- 列表页广告一 -->
  8. <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
  9. <!-- 面包屑导航 -->
  10. <div class="breadcrumb">
  11. <div class="inner">
  12. <span class="location">当前位置:</span>
  13. <el-breadcrumb :separator-icon="ArrowRight">
  14. <el-breadcrumb-item>
  15. <NuxtLink to="/">首页</NuxtLink>
  16. </el-breadcrumb-item>
  17. <el-breadcrumb-item>本网招聘</el-breadcrumb-item>
  18. </el-breadcrumb>
  19. </div>
  20. </div>
  21. <!-- 资讯列表 -->
  22. <div class="newsList">
  23. <div class="inner">
  24. <div class="innerLeft">
  25. <div class="projectMoreBox">
  26. <div class="projectMoreTitle">社会保障在线网</div>
  27. <div class="projectMoreText">
  28. <p><b>政讯通·全国文化旅游项目</b>网络平台由<b>政讯通-全国政务信息一体化办公室</b>主管,联合30多家企事业单位组成,由北京政讯通文化传播有限公司对外牵头运营。</p>
  29. <p><b>政讯通·全国文化旅游项目</b>网络平台有政务、行业独立域名网站各<b>100</b>个和<b>4</b>个综合管理网站共<b>204</b>个网站,按照不同的行业和功能分类为用户提供大体系、广领域、全方位、全过程,有针对性的全国性文化旅游法制综合服务平台。</p>
  30. <p><b>政讯通·全国旅游资讯发布中心</b>是<b>政讯通·全国文化旅游项目</b>网络平台的4个综合管理网站之一,目前开设了栏目上千个,地市中心可全面覆盖我国334个地级市,<b>业务范围</b>涵盖旅游资讯、與情监测、法律咨询、旅游调研、法律宣传、群众监督、旅游安全等领域,日均会员访问量超过万次,累计完成文化旅游领域法制调研课题千余件,网络信息化会员遍布全国各地,实施<b>行业、区域</b>全覆盖,是我国具有广泛传播力、影响力的新型主流媒体。</p>
  31. </div>
  32. </div>
  33. <div class="innerTitle">本网招聘</div>
  34. <ul class="list">
  35. <li v-for="(item, index) in newsList" :key="index">
  36. <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" :title="item.con_title">{{item.con_title}}</NuxtLink>
  37. <!-- <NuxtLink :to="{ path: `/speciaArticle/${item.id}` }" target="_blank" v-if="item.islink == 0">{{ item.list_title }}</NuxtLink> -->
  38. </li>
  39. </ul>
  40. <!-- 分页器 -->
  41. <!-- <div class="pagination">
  42. <el-pagination size="small" background layout="prev, pager, next" :total="total" class="mt-4"
  43. prev-text="上一页" next-text="下一页" @change="changePage" />
  44. </div> -->
  45. </div>
  46. <div class="innerRight">
  47. <div class="rightMenuTitle">导航列表</div>
  48. <ul>
  49. <li v-for="(item, index) in bottomMenu" :key="index">
  50. <NuxtLink :to="`/speciaArticle/${item.id}`" v-if="item.id == pageId && item.id != 7" class="active" :title="item.name">{{ item.name }}</NuxtLink>
  51. <NuxtLink :to="`/speciaArticle/${item.id}`" v-else-if="item.id != pageId && item.id != 7" :title="item.name">{{ item.name }}</NuxtLink>
  52. <NuxtLink :to="`/specialList/${item.id}`" v-if="item.id == 7 && pageId == 7 && routeHref == '/specialList/7'" class="active" :title="item.name">{{item.name}}</NuxtLink>
  53. <NuxtLink :to="`/specialList/${item.id}`" v-else-if="item.id == 7" :title="item.name">{{item.name}}</NuxtLink>
  54. </li>
  55. </ul>
  56. </div>
  57. <div style="clear: both;"></div>
  58. </div>
  59. </div>
  60. <!-- 列表页广告二 -->
  61. <HomeTopTen :imgurl="adImg2" v-if="adImg2"></HomeTopTen>
  62. <!-- 页面底部 -->
  63. <HomeFoot1></HomeFoot1>
  64. </div>
  65. </template>
  66. <script setup>
  67. //1.页面依赖 start ---------------------------------------->
  68. import { ElBreadcrumb, ElBreadcrumbItem, ElPagination } from 'element-plus'
  69. import { ArrowRight } from '@element-plus/icons-vue'
  70. import { ref, onMounted } from 'vue';
  71. //获得跳转过来的id
  72. const route = useRoute();
  73. const pageId = route.params.id;
  74. const routeHref = route.href;
  75. //1.页面依赖 end ---------------------------------------->
  76. //2.页面数据 start ---------------------------------------->
  77. //广告
  78. let adImg1 = ref([]);
  79. let adImg2 = ref([]);
  80. // async function getAdData(){
  81. // const adData = await requestDataPromise('/web/getWebsiteAdvertisement',{method:'GET',query:{'ad_tag':'PAGE'}});
  82. // if(adData.code==200){
  83. // for(let item of adData.data){
  84. // if(item.ad_tag == 'PAGE_0001'){
  85. // adImg1.value = item;
  86. // }
  87. // if(item.ad_tag == 'PAGE_0002'){
  88. // adImg2.value = item;
  89. // }
  90. // }
  91. // }else{
  92. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  93. // console.log("错误位置:获取详情页广告列表")
  94. // console.log("后端错误反馈:",adData.message)
  95. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  96. // }
  97. // }
  98. // getAdData();
  99. onMounted(async () => {
  100. //从客户端获取行政职能部门 加快打开速度
  101. const { $webUrl, $CwebUrl } = useNuxtApp();
  102. //广告1
  103. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0001`
  104. const responseAd1 = await fetch(url, {
  105. headers: {
  106. 'Content-Type': 'application/json',
  107. 'Userurl': $CwebUrl,
  108. 'Origin': $CwebUrl
  109. }
  110. });
  111. const resultAd1 = await responseAd1.json();
  112. adImg1.value = resultAd1.data[0];
  113. //广告2
  114. let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_page_0002`
  115. const responseAd2 = await fetch(url2, {
  116. headers: {
  117. 'Content-Type': 'application/json',
  118. 'Userurl': $CwebUrl,
  119. 'Origin': $CwebUrl
  120. }
  121. });
  122. const resultAd2 = await responseAd2.json();
  123. adImg2.value = resultAd2.data[0];
  124. })
  125. //左侧导航
  126. const bottomMenu = ref([]);
  127. async function getPageMenu() {
  128. const mkdata = await requestDataPromise('/web/getWebsiteFooterCategory', {
  129. method: 'GET',
  130. query: {},
  131. });
  132. bottomMenu.value = mkdata.data;
  133. }
  134. getPageMenu();
  135. //列表
  136. const newsList = ref([]);
  137. let newslists = async () => {
  138. const listData = await requestDataPromise('/web/getWebsiteFooterCategoryList', {
  139. method: 'GET',
  140. query: {
  141. 'fcat_id':pageId,
  142. },
  143. });
  144. newsList.value = listData.data;
  145. }
  146. //获得列表
  147. newslists();
  148. //分页
  149. let changePage = (value) => {
  150. console.log("当前页码", value);
  151. page.value = value
  152. console.log(page.value);
  153. newslists()
  154. }
  155. //2.页面数据 end ---------------------------------------->
  156. //3 设置seo信息
  157. const setData = await requestDataPromise('/web/getWebsiteFootInfo', {
  158. method: 'GET',
  159. query: {},
  160. });
  161. let seoTitle = setData.data.website_head.title;
  162. let seoDescription = setData.data.website_head.description;
  163. let seoKeywords = setData.data.website_head.keywords;
  164. let seoSuffix = setData.data.website_head.suffix;
  165. let seoName = setData.data.website_head.website_name;
  166. useSeoMeta({
  167. title: seoTitle + "_" + seoSuffix,
  168. meta: [
  169. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  170. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 }
  171. ]
  172. });
  173. //3.设置seo信息 end---------------------------------------->
  174. </script>
  175. <style lang="less" scoped>
  176. //导航条
  177. .breadcrumb {
  178. width: 100%;
  179. height: 22px;
  180. margin-bottom: 30px;
  181. font-family: Microsoft YaHei, Microsoft YaHei;
  182. font-weight: 400;
  183. font-size: 20px;
  184. color: #666666;
  185. line-height: 23px;
  186. text-align: left;
  187. font-style: normal;
  188. text-transform: none;
  189. :deep(.el-breadcrumb) {
  190. display: inline-block;
  191. vertical-align: -4px;
  192. }
  193. :deep(.el-breadcrumb__inner a),
  194. :deep(.el-breadcrumb__inner.is-link) {
  195. color: #666666;
  196. font-weight: 400;
  197. text-decoration: none;
  198. transition: var(--el-transition-color);
  199. }
  200. span {
  201. font-family: Microsoft YaHei, Microsoft YaHei;
  202. font-weight: 400;
  203. font-size: 20px;
  204. color: #666666;
  205. line-height: 23px;
  206. text-align: left;
  207. font-style: normal;
  208. text-transform: none;
  209. }
  210. span:hover {
  211. color: #666666;
  212. }
  213. .location {
  214. margin-right: 20px;
  215. width: 100px;
  216. height: 22px;
  217. font-family: Microsoft YaHei, Microsoft YaHei;
  218. font-weight: 400;
  219. font-size: 20px;
  220. color: #666666;
  221. line-height: 23px;
  222. text-align: left;
  223. font-style: normal;
  224. text-transform: none;
  225. }
  226. }
  227. // 资讯列表
  228. .newsList {
  229. width: 100%;
  230. margin-bottom: 70px;
  231. .inner {
  232. width: 1200px;
  233. height: 1300px;
  234. .innerLeft {
  235. height: 65px;
  236. line-height: 65px;
  237. font-size: 22px;
  238. color: #028E21;
  239. font-weight: bold;
  240. }
  241. .innerTitle {
  242. font-size: 24px;
  243. }
  244. .innerLeft {
  245. float: right;
  246. >.list {
  247. height: 570px;
  248. margin-bottom: 70px;
  249. border-top: 1px solid #139602;
  250. >li {
  251. width: 790px;
  252. height: 60px;
  253. white-space: nowrap;
  254. overflow: hidden;
  255. text-overflow: ellipsis;
  256. line-height: 60px;
  257. //border-bottom: 1px solid #D9D9D9;
  258. >a {
  259. width: 360px;
  260. height: 26px;
  261. cursor: pointer;
  262. font-family: Microsoft YaHei, Microsoft YaHei;
  263. font-weight: 400;
  264. font-size: 20px;
  265. color: #333333;
  266. line-height: 26px;
  267. text-align: left;
  268. font-style: normal;
  269. text-transform: none;
  270. }
  271. }
  272. >li:hover>a {
  273. color: #139602;
  274. }
  275. >li:nth-child(1)::after,
  276. >li:nth-child(2)::after {
  277. content: "热";
  278. margin-left: 13px;
  279. background: #FF8A37;
  280. color: #fff;
  281. font-size: 14px;
  282. padding: 0px 2px;
  283. }
  284. >li:nth-child(5n) {
  285. border-bottom: 1px solid #D9D9D9;
  286. }
  287. }
  288. >.pagination {
  289. width: 800px;
  290. height: 34px;
  291. margin-left: 141px;
  292. display: flex;
  293. justify-content: center;
  294. margin: 0;
  295. // 鼠标移入后字体颜色
  296. .el-pagination::v-deep :hover {
  297. color: #139609;
  298. }
  299. .el-pagination.is-background::v-deep .btn-next,
  300. .el-pagination.is-background::v-deep .btn-prev {
  301. width: 70px;
  302. height: 34px;
  303. margin: 0px 10px;
  304. border-radius: 4px;
  305. }
  306. .el-pagination.is-background::v-deep .el-pager li {
  307. margin: 0px 10px;
  308. width: 38px;
  309. height: 34px;
  310. border-radius: 4px;
  311. }
  312. .el-pagination.is-background::v-deep .btn-next.is-active,
  313. .el-pagination.is-background::v-deep .btn-prev.is-active,
  314. .el-pagination.is-background::v-deep .el-pager li.is-active {
  315. background-color: #028e21;
  316. color: #fff;
  317. }
  318. }
  319. }
  320. .innerRight {
  321. width: 279px;
  322. .rightMenuTitle {
  323. width: 279px;
  324. height: 69px;
  325. font-size: 22px;
  326. font-weight: bold;
  327. line-height: 58px;
  328. text-align: center;
  329. color: #fff;
  330. background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/special/projectMoreTitle.png") no-repeat;
  331. margin-bottom: 30px;
  332. }
  333. ul {
  334. li {
  335. a {
  336. border-left: 5px solid #028E21;
  337. margin-bottom: 15px;
  338. font-size: 22px;
  339. display: block;
  340. height: 61px;
  341. line-height: 61px;
  342. color: #333333;
  343. text-align: center;
  344. background: #FBFBFB;
  345. }
  346. }
  347. }
  348. .active {
  349. border-left: 0;
  350. border: 1px solid #028E21;
  351. background: #fff;
  352. }
  353. }
  354. }
  355. }
  356. //资讯推荐
  357. .zixuntuijian {
  358. width: 100%;
  359. height: 290px;
  360. margin-bottom: 70px;
  361. .innerLeft {
  362. // 左侧
  363. .zixunLeft {
  364. margin-right: 30px;
  365. }
  366. .zixunRight,
  367. .zixunLeft {
  368. float: left;
  369. width: 380px;
  370. height: 290px;
  371. // 标题部分
  372. >.title {
  373. width: 380px;
  374. }
  375. >.title>h3 {
  376. height: 36px;
  377. font-family: Source Han Sans, Source Han Sans;
  378. font-weight: bold;
  379. font-size: 24px;
  380. color: #000000;
  381. line-height: 28px;
  382. text-align: left;
  383. font-style: normal;
  384. text-transform: none;
  385. border-bottom: 1px solid #139602;
  386. }
  387. >.title>h3>span {
  388. float: right;
  389. width: 56px;
  390. height: 20px;
  391. line-height: 24px;
  392. font-weight: 400;
  393. font-size: 14px;
  394. color: #999999;
  395. font-style: normal;
  396. text-transform: none;
  397. }
  398. .photo_text {
  399. >li:first-child {
  400. width: 380px;
  401. height: 120px;
  402. margin-top: 20px;
  403. margin-bottom: 15px;
  404. position: relative;
  405. >img {
  406. float: left;
  407. width: 160px;
  408. height: 120px;
  409. }
  410. >div {
  411. float: left;
  412. width: 220px;
  413. height: 120px;
  414. padding-left: 15px;
  415. padding-top: 6px;
  416. box-sizing: border-box;
  417. background-color: #f6f6f6;
  418. >h5 {
  419. width: 200px;
  420. height: 54px;
  421. display: -webkit-box;
  422. -webkit-box-orient: vertical;
  423. -webkit-line-clamp: 2;
  424. overflow: hidden;
  425. text-overflow: ellipsis;
  426. word-break: break-all;
  427. font-family: Source Han Sans, Source Han Sans;
  428. font-weight: 500;
  429. font-size: 18px;
  430. color: #333333;
  431. line-height: 26px;
  432. text-align: left;
  433. font-style: normal;
  434. text-transform: none;
  435. }
  436. >p {
  437. width: 200px;
  438. height: 22px;
  439. line-height: 20px;
  440. position: absolute;
  441. bottom: 5px;
  442. right: 0;
  443. >span {
  444. display: inline-block;
  445. // width: 100px;
  446. height: 18px;
  447. font-family: Source Han Sans, Source Han Sans;
  448. font-weight: 400;
  449. font-size: 12px;
  450. color: #999999;
  451. text-align: left;
  452. line-height: 14px;
  453. font-style: normal;
  454. text-transform: none;
  455. }
  456. >span:last-child {
  457. // width: 90px;
  458. text-align: right;
  459. margin-left: 20px;
  460. }
  461. }
  462. }
  463. }
  464. >li {
  465. width: 380px;
  466. height: 25px;
  467. white-space: nowrap;
  468. overflow: hidden;
  469. text-overflow: ellipsis;
  470. font-family: PingFang SC, PingFang SC;
  471. font-weight: 500;
  472. font-size: 18px;
  473. color: #333333;
  474. line-height: 21px;
  475. text-align: left;
  476. font-style: normal;
  477. text-transform: none;
  478. margin-bottom: 10px;
  479. em {
  480. display: inline-block;
  481. width: 8px;
  482. height: 8px;
  483. border-radius: 8px;
  484. margin-right: 10px;
  485. background-color: #d9d9d9;
  486. }
  487. }
  488. >li:hover {
  489. color: #139602;
  490. }
  491. >li:hover em {
  492. background-color: #139602;
  493. }
  494. }
  495. }
  496. }
  497. .innerRight {
  498. width: 381px;
  499. height: 290px;
  500. background-color: #fbfbfb;
  501. >.title {
  502. width: 380px;
  503. height: 40px;
  504. line-height: 40px;
  505. border-top: 1px solid #139602;
  506. border-bottom: 1px solid #e7e7e7;
  507. >h4 {
  508. font-family: Microsoft YaHei, Microsoft YaHei;
  509. font-weight: 400;
  510. margin-left: 20px;
  511. font-size: 20px;
  512. color: #000000;
  513. text-align: left;
  514. font-style: normal;
  515. text-transform: none;
  516. >span {
  517. float: right;
  518. font-family: Microsoft YaHei, Microsoft YaHei;
  519. font-weight: 400;
  520. font-size: 14px;
  521. margin-right: 10px;
  522. color: #999999;
  523. text-align: left;
  524. font-style: normal;
  525. text-transform: none;
  526. }
  527. }
  528. }
  529. .rightList {
  530. height: 540px;
  531. margin-top: 20px;
  532. >li {
  533. height: 100px;
  534. margin-bottom: 10px;
  535. >img {
  536. width: 150px;
  537. height: 100px;
  538. }
  539. >p {
  540. width: 219px;
  541. height: 100px;
  542. padding-left: 12px;
  543. font-family: PingFang SC, PingFang SC;
  544. font-weight: 400;
  545. font-size: 16px;
  546. color: #333333;
  547. line-height: 22px;
  548. text-align: left;
  549. font-style: normal;
  550. text-transform: none;
  551. }
  552. >p:hover {
  553. box-shadow: 0 0 16px 1px rgba(0, 0, 0, 0.1);
  554. }
  555. }
  556. }
  557. }
  558. }
  559. .projectMoreBox {
  560. margin: 0 auto;
  561. height: 540px;
  562. margin-top: 20px;
  563. background: url("http://img.bjzxtw.org.cn/master/bjzxtw/public/special/projectMoreBg.png") no-repeat;
  564. margin-bottom: 40px;
  565. .projectMoreTitle {
  566. color: #028E21;
  567. padding-top: 20px;
  568. font-size: 26px;
  569. padding-left: 204px;
  570. }
  571. .projectMoreText {
  572. padding: 40px;
  573. font-size: 20px;
  574. color: #333333;
  575. text-indent: 2em;
  576. line-height: 36px;
  577. }
  578. }
  579. </style>